//
//  RemindViewController.m
//  便签
//
//  Created by  on 2022/10/1.
//

#import "RemindViewController.h"

@interface RemindViewController ()
@property (strong, nonatomic) IBOutlet UIView *bgView;

@end

@implementation RemindViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    CGRect bounds = CGRectMake(0, 0, SCREEN_WIDTH, self.bgView.frame.size.height);
    UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(20, 20)];
    CAShapeLayer *layer = [CAShapeLayer layer];
    layer.frame = bounds;
    layer.path = path.CGPath;
    self.bgView.layer.mask = layer;
    self.bgView.bgHexColor = APP.mainColor;
}
- (IBAction)actioForBtn:(UIButton *)sender {
    [self dismissViewControllerAnimated:NO completion:^{
        if (sender.tag == 202) {
            if (self.block) {
                self.block(self.switchBtn.on);
            }
        }
    }];

}
- (IBAction)actionForSwitchBtn:(UISwitch *)sender {
  
}

@end
